package hr_project.hr.entity;

import java.io.Serializable;
import java.util.List;

public class Right implements Serializable{
	private long ri_id;//权限编号
	private String ri_name ;//权限名称
	private String url ;//跳转路径
	private Long ri_parentid;
	private List<Right> children;
	private String text;
	private boolean checked=false;
	
	
	
	
	
	
	public boolean isChecked() {
		return checked;
	}
	public void setChecked(boolean checked) {
		this.checked = checked;
	}
	public Long getRi_parentid() {
		return ri_parentid;
	}
	public void setRi_parentid(Long ri_parentid) {
		this.ri_parentid = ri_parentid;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public List<Right> getChildren() {
		return children;
	}
	public void setChildren(List<Right> children) {
		this.children = children;
	}
	public long getRi_id() {
		return ri_id;
	}
	public void setRi_id(long ri_id) {
		this.ri_id = ri_id;
	}
	public String getRi_name() {
		return ri_name;
	}
	public void setRi_name(String ri_name) {
		this.ri_name = ri_name;
		 this.text = ri_name;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	
	@Override
	public boolean equals(Object obj) {
		// TODO Auto-generated method stub
		Right r1=(Right)obj;
		if(r1.getRi_id()==this.ri_id)
		return true;
		else return false;
	}
	
}
